
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JDesktopPane;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.plaf.DesktopPaneUI;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Overpower
 */
public class SistemaGestionVista extends javax.swing.JFrame {

    /**
     * Creates new form SistemaGestionVista
     */
    public SistemaGestionVista() {
        initComponents();
         _escritorio.setUI(new DesktopPaneUI() {
            @Override
                public void installUI(JComponent c) {
                    // TODO Auto-generated method stub
                    try {
                        UIManager.setLookAndFeel( SistemaGestion.LookAndFeel );
                    } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) {
                    }
                    super.installUI(c);
                }   
            });
    }

    public JPanel getCabecera() {
        return _cabecera;
    }
    
    public JDesktopPane getEscritorio() {
        return _escritorio;
    }

    public JMenuBar getBarraMenu() {
        return _menuBar;
    }

    public JMenu getMenuEdit() {
        return _menuEdit;
    }

    public JMenu getMenuFile() {
        return _menuFile;
    }

    public JPanel getPie() {
        return _pie;
    }

    public JButton getBotonAlumnos() {
        return _botonAlumnos;
    }
    
    public JButton getBotonCarrera() {
        return _botonCarrera;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        _cabecera = new javax.swing.JPanel();
        _botonAlumnos = new javax.swing.JButton();
        _botonCarrera = new javax.swing.JButton();
        _cuerpo = new javax.swing.JPanel();
        _escritorio = new javax.swing.JDesktopPane();
        _pie = new javax.swing.JPanel();
        _menuBar = new javax.swing.JMenuBar();
        _menuFile = new javax.swing.JMenu();
        _menuEdit = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(800, 600));
        setModalExclusionType(java.awt.Dialog.ModalExclusionType.APPLICATION_EXCLUDE);
        setName("_marco"); // NOI18N

        _cabecera.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        _botonAlumnos.setIcon(new javax.swing.ImageIcon("D:\\My Data\\Analista de Sistemas\\Segundo Año\\Programacion II\\GestionCESMI\\Recursos\\Imagenes\\book.png")); // NOI18N
        _botonAlumnos.setBorder(null);
        _botonAlumnos.setBorderPainted(false);
        _botonAlumnos.setContentAreaFilled(false);
        _botonAlumnos.setMaximumSize(new java.awt.Dimension(32, 32));
        _botonAlumnos.setMinimumSize(new java.awt.Dimension(32, 32));
        _botonAlumnos.setPreferredSize(new java.awt.Dimension(32, 32));
        _botonAlumnos.setRolloverIcon(new javax.swing.ImageIcon("D:\\My Data\\Analista de Sistemas\\Segundo Año\\Programacion II\\GestionCESMI\\Recursos\\Imagenes\\book-hoover.png")); // NOI18N

        _botonCarrera.setIcon(new javax.swing.ImageIcon("D:\\My Data\\Analista de Sistemas\\Segundo Año\\Programacion II\\GestionCESMI\\Recursos\\Imagenes\\book.png")); // NOI18N
        _botonCarrera.setBorder(null);
        _botonCarrera.setBorderPainted(false);
        _botonCarrera.setContentAreaFilled(false);
        _botonCarrera.setMaximumSize(new java.awt.Dimension(32, 32));
        _botonCarrera.setMinimumSize(new java.awt.Dimension(32, 32));
        _botonCarrera.setPreferredSize(new java.awt.Dimension(32, 32));
        _botonCarrera.setRolloverIcon(new javax.swing.ImageIcon("D:\\My Data\\Analista de Sistemas\\Segundo Año\\Programacion II\\GestionCESMI\\Recursos\\Imagenes\\book-hoover.png")); // NOI18N

        javax.swing.GroupLayout _cabeceraLayout = new javax.swing.GroupLayout(_cabecera);
        _cabecera.setLayout(_cabeceraLayout);
        _cabeceraLayout.setHorizontalGroup(
            _cabeceraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(_cabeceraLayout.createSequentialGroup()
                .addComponent(_botonAlumnos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(_botonCarrera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 1063, Short.MAX_VALUE))
        );
        _cabeceraLayout.setVerticalGroup(
            _cabeceraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
            .addComponent(_botonAlumnos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(_botonCarrera, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        _cuerpo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        _escritorio.setBackground(new java.awt.Color(0, 51, 51));

        javax.swing.GroupLayout _escritorioLayout = new javax.swing.GroupLayout(_escritorio);
        _escritorio.setLayout(_escritorioLayout);
        _escritorioLayout.setHorizontalGroup(
            _escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        _escritorioLayout.setVerticalGroup(
            _escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 462, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout _cuerpoLayout = new javax.swing.GroupLayout(_cuerpo);
        _cuerpo.setLayout(_cuerpoLayout);
        _cuerpoLayout.setHorizontalGroup(
            _cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(_escritorio)
        );
        _cuerpoLayout.setVerticalGroup(
            _cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(_escritorio)
        );

        _pie.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        javax.swing.GroupLayout _pieLayout = new javax.swing.GroupLayout(_pie);
        _pie.setLayout(_pieLayout);
        _pieLayout.setHorizontalGroup(
            _pieLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        _pieLayout.setVerticalGroup(
            _pieLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 24, Short.MAX_VALUE)
        );

        _menuFile.setText("File");
        _menuBar.add(_menuFile);

        _menuEdit.setText("Edit");
        _menuBar.add(_menuEdit);

        setJMenuBar(_menuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(_cabecera, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(_cuerpo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(_pie, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(_cabecera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(_cuerpo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(_pie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton _botonAlumnos;
    private javax.swing.JButton _botonCarrera;
    private javax.swing.JPanel _cabecera;
    private javax.swing.JPanel _cuerpo;
    private javax.swing.JDesktopPane _escritorio;
    private javax.swing.JMenuBar _menuBar;
    private javax.swing.JMenu _menuEdit;
    private javax.swing.JMenu _menuFile;
    private javax.swing.JPanel _pie;
    // End of variables declaration//GEN-END:variables
}
